﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

using WFL.Data.Oracle;
using WFL.Utils;

namespace WFL.RBAC.Oracle
{
    public class BaseDAL : OracleOperationWithContext
    {
        protected OracleORM Orm
        {
            get;
            private set;
        }

        public BaseDAL()
            : base()
        {
            ConnectionStringSettings settings = ConfigurationHelper.GetConnectionStringSettings("RBACConn");
            if (settings == null)
            {
                throw new Exception("找不到数据库连接串“RBACConn”配置");
            }
            base.ConnectionString = settings.ConnectionString;
            Orm = new OracleORM(this);
        }
    }
}
